#include <basic_types.h>
#include <sys_config.h>


#ifdef TTX_GREEK_SUPPORT

static const UINT32 TTX_GREEK_Font[][96][9] =
{
  // TTX_GREEK_SUPPORT		
	//Greek G0 set, 0x20~0x7f maps to 0x20~0x7f
		{
		     { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},    //  032  0x20
                   { 0x00000000, 0x0001c007, 0x001c0070, 0x01c00700, 0x1c007001, 0xc0070000, 0x007001c0, 0x07000000, 0x00000000},    //  033  0x21
                   { 0x00000000, 0x001f7c7d, 0xf1f7c3cf, 0x0f3c79c1, 0xe7000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},    //  034  0x22
                   { 0x00000000, 0x000f3c3c, 0xf0f3c7ff, 0x9ffe7ff8, 0xf3c3cf0f, 0x3c7ff9ff, 0xe3cf0f3c, 0x3cf00000, 0x00000000},    //  035  0x23
                   {0x00000000, 0x3000c01f, 0xc0ffc3cf, 0x0f001f00, 0x1f001f00, 0x7c00f0f3, 0xc1fc01e0, 0x03000c00, 0x00000000},    //  036  0x24
                   { 0x00000000, 0x00000038, 0x19f0e6c7, 0x9b1c7ce0, 0xe7003803, 0xc01ee0f7, 0xc71b187c, 0x40e00000, 0x00000000},    //  037  0x25
                   { 0x00000000, 0x0000003f, 0x01fe0618, 0x18606181, 0x8603f00f, 0xc0739b87, 0xec0e3ffe, 0x7f980000, 0x00000000},    //  038  0x26
                   { 0x00000000, 0x0003e00f, 0x803e0078, 0x01e00f00, 0x3c000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},    //  039  0x27
                   { 0x00000000, 0x00000001, 0xc01f00f0, 0x03c01f00, 0x7801e007, 0x801e007c, 0x00f001f0, 0x01c00000, 0x00000000},    //  040  0x28
                   { 0x00000000, 0x0000001c, 0x007c0078, 0x01e007c0, 0x0f003c00, 0xf003c01f, 0x007807c0, 0x1c000000, 0x00000000},    //  041  0x29
                   { 0x00000000, 0x0001e007, 0x83deef7b, 0xbdeef7bb, 0xffe0fc3f, 0xfef7bbde, 0xef7b81e0, 0x07800000, 0x00000000},    //  042  0x2a
                   { 0x00000000, 0x00000000, 0x001e0078, 0x01e00781, 0xffc7ff1f, 0xfc07801e, 0x00780000, 0x00000000, 0x00000000},    //  043  0x2b
                   { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000000f0, 0x03c00f00, 0x1c00e003, 0x800e0000},    //  044  0x2c
                   { 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0xffc7ff1f, 0xfc000000, 0x00000000, 0x00000000, 0x00000000},    //  045  0x2d
                   { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000000f0, 0x03c00f00, 0x3c000000, 0x00000000},    //  046  0x2e
                   { 0x00000000, 0x00000000, 0x3001c00f, 0x007803c0, 0x1e00f007, 0x803c01e0, 0x0f003800, 0x00000000, 0x00000000},    //  047  0x2f
                   { 0x00000000, 0x00000007, 0x807f83cf, 0x0f3c3cf0, 0xf3c3cf0f, 0x3c3cf0f3, 0xc3cf07f8, 0x07800000, 0x00000000},    //  048  0x30
                   { 0x00000000, 0x00000003, 0xc01f00fc, 0x07f01fc0, 0x0f003c00, 0xf003c00f, 0x003c00f0, 0x03c00000, 0x00000000},    //  049  0x31
                   { 0x00000000, 0x0000000f, 0xc07f83ff, 0x0e3c38f0, 0x07803c01, 0xe00f0078, 0x03ff0ffc, 0x3ff00000, 0x00000000},    //  050  0x32
                   { 0x00000000, 0x00000007, 0x807f03ce, 0x0e1c3870, 0x03c03c00, 0xf000f0e1, 0xc3ce07f0, 0x07800000, 0x00000000},    //  051  0x33
                   { 0x00000000, 0x00000001, 0xc00f007c, 0x03f01fc0, 0xf7071c1c, 0x707ff1ff, 0xc01c0070, 0x01c00000, 0x00000000},    //  052  0x34
                   { 0x00000000, 0x0000007f, 0xe1ff8700, 0x1c007001, 0xff07fe00, 0x7800e1c3, 0x87de0ff0, 0x1f800000, 0x00000000},    //  053  0x35
                   { 0x00000000, 0x0000000f, 0xc07f8186, 0x0e003800, 0xfe03fc0e, 0x3838e0e3, 0x818e07f0, 0x0f800000, 0x00000000},    //  054  0x36
                   { 0x00000000, 0x0000003f, 0xe0ff8006, 0x003800e0, 0x07001800, 0xe0070018, 0x00e00300, 0x0c000000, 0x00000000},    //  055  0x37
                   { 0x00000000, 0x0000000f, 0x807f038e, 0x0e3838e0, 0xe381fc07, 0xf038e0e3, 0x838e07f0, 0x0f800000, 0x00000000},    //  056  0x38
                   { 0x00000000, 0x0000000f, 0x807f038e, 0x0e3838e0, 0xe3838e07, 0xf80fe003, 0x830e0ff0, 0x1f800000, 0x00000000},    //  057  0x39
                   { 0x00000000, 0x00000000, 0x003c00f0, 0x03c00f00, 0x3c000000, 0x000f003c, 0x00f003c0, 0x00000000, 0x00000000},    //  058  0x3a
                   { 0x00000000, 0x00000000, 0x003c00f0, 0x03c00f00, 0x3c000000, 0x000f003c, 0x00f003c0, 0x1f007800, 0x00000000},    //  059  0x3b
                   { 0x00000000, 0x00004207, 0x3839c1ce, 0x0e707383, 0x9c0c603d, 0xe07bc0f7, 0x81ef01ce, 0x01000000, 0x00000000},    //  060  0x3c
                   { 0x00000000, 0x00000000, 0x01ffc7ff, 0x1ffc7ff0, 0x0007ff1f, 0xfc7ff000, 0x00000000, 0x00000000, 0x00000000},    //  061  0x3d
                   { 0x00000000, 0x00108073, 0x80e701ce, 0x039c0738, 0x0e7018c1, 0xef0f787b, 0xc3de1ce0, 0x02000000, 0x00000000},    //  062  0x3e
                   { 0x00000000, 0x000ff83f, 0xf1ffc78f, 0x003c00f0, 0x03c07f01, 0xf8070000, 0x007001c0, 0x07000000, 0x00000000},    //  063  0x3f

			 {0x0300edc3, 0xb70fe03f, 0x80fe0078, 0x01e00780, 0x1e007801, 0xe007801e, 0x007801fc, 0x07f01fc0, 0x00000000},//064 0x40
			 {0x00000000,0x7801e00f,0xc03f00fc,0x07381ce0,0xe1c3ff0f,0xfc7039c0,0xee01f807,0x00000000,0x00000000},//  065  0x41  
			{0x00000007,0xf81ff071,0xe1c3870e,0x1c787fc1,0xff870f1c,0x1c7071c3,0xc7fe1ff0,0x00000000,0x00000000},//  066  0x42  
			{0x00000003,0xfe0ff838,0x00e00380,0x0e003800,0xe003800e,0x003800e0,0x03800e00,0x00000000,0x00000000},//  067  0x43  
			{0x00000000,0x7801e00f,0xc03f00fc,0x07381ce0,0xe1c3870e,0x1c7039c0,0xefffffff,0x00000000,0x00000000},//  068  0x44  
			{0x00000007,0xff1ffc70,0x01c00700,0x1c007fe1,0xff87001c,0x007001c0,0x07ff1ffc,0x00000000,0x00000000},//  069  0x45  
			{0x00000007,0xff1ffc00,0x7003801c,0x00e00700,0x3801c00e,0x00700380,0x0fff3ffc,0x00000000,0x00000000},//  070  0x46  
			{0x00000007,0x039c0e70,0x39c0e703,0x9c0e7ff9,0xffe7039c,0x0e7039c0,0xe7039c0e,0x00000000,0x00000000},//  071  0x47  
			{0x00000000,0xf80ff878,0xf1c1ce03,0xb80eefbb,0xbeee03b8,0x0e7071e3,0xc3fe03e0,0x00000000,0x00000000},//  072  0x48  
			 {0x00000001, 0xfe07f81f, 0xe01e0078, 0x01e00780, 0x1e007801, 0xe007801e, 0x007807f8, 0x1fe07f80, 0x00000000},//073 0x49
			 {0x00000007,0x039c1c70,0xe1c70738,0x1dc07e01,0xfc07b81c,0x7070e1c1,0xc7039c07,0x00000000,0x00000000},//  074  0x4a  
			{0x00000000,0x7801e00f,0xc03f00fc,0x07381ce0,0xe1c3870e,0x1c7039c0,0xee01f807,0x00000000,0x00000000},//  075  0x4b  
			{0x0000000f,0x03fe1ff8,0x7fe1ffcf,0xff3ffcff,0xf3fefdfb,0xf7efdfbf,0x7e79f9e7,0x00000000,0x00000000},//  076  0x4c  
			{0x00000007,0x039e0e7c,0x39f0e7e3,0x9dce7739,0xcee73b9c,0x7e70f9c3,0xe7079c0e,0x00000000,0x00000000},//  077  0x4d  
			{0x00000007,0xfe1ff800,0x00000000,0x00003fc0,0xff000000,0x00000000,0x07fe1ff8,0x00000000,0x00000000},//  078  0x4e  
			{0x00000000,0xf80ff878,0xf1c1ce03,0xb80ee03b,0x80ee03b8,0x0e7071e3,0xc3fe03e0,0x00000000,0x00000000},//  079  0x4f  
			{0x00000007,0xff9ffe70,0x39c0e703,0x9c0e7039,0xc0e7039c,0x0e7039c0,0xe7039c0e,0x00000000,0x00000000},//  080  0x50  
			{0x00000007,0xfc1ff870,0xf1c1c707,0x1c3c7fe1,0xff07001c,0x007001c0,0x07001c00,0x00000000,0x00000000},//  081  0x51  
			{0x00001c00, 0x7001c007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},//082 0x52
			{0x00000003,0xff0ffc38,0x007000e0,0x01c00380,0x1c007003,0x801c00e0,0x03ff0ffc,0x00000000,0x00000000},//  083  0x53  
			{0x00000007,0xff1ffc07,0x001c0070,0x01c00700,0x1c007001,0xc007001c,0x007001c0,0x00000000,0x00000000},//  084  0x54  
			{0x0000000e,0x039c1c70,0x70e383de,0x07700f80,0x3e007001,0xc007001c,0x007001c0,0x00000000,0x00000000},//  085  0x55  
			{0x00000000,0x7001c03f,0xe1ffcf77,0xb1c7c71f,0x1c7c71fd,0xde7ff0ff,0x807001c0,0x00000000,0x00000000},//  086  0x56  
			{0x0000000e,0x039c1c38,0xe0e381dc,0x03e00700,0x1c00f807,0x7038e0e3,0x8707380e,0x00000000,0x00000000},//  087  0x57  
			{0x0000000c,0x71f1c7c7,0x1f1c7c71,0xf1c7e73f,0xdde7ff0f,0xf807001c,0x007001c0,0x00000000,0x00000000},//  088  0x58  
			{0x00000000,0xfc07f83c,0xf1e1e703,0x9c0e7039,0xc0e7038c,0x0c387073,0x87ff9ffe,0x00000000,0x00000000},//  089  0x59  
			{0x0dc00000,0x7001c007,0x001c0070,0x01c00700,0x1c007001,0xc007001c,0x007001c0,0x00000000,0x00000000},//  090  0x5a  
			{0x1dc0000e,0x039c1c70,0x70e383de,0x07700f80,0x3e007001,0xc007001c,0x007001c0,0x00000000,0x00000000},//  091  0x5b  
			{0x00000000,0x1c00e003,0x800000f7,0x07fc3de0,0xe3838e0e,0x3838e0f7,0x81ff03dc,0x00000000,0x00000000},//  092  0x5c  
			{0x00000000,0x3801c007,0x000000f8,0x07f01c00,0x7000f003,0xc01c0073,0x01fc03e0,0x00000000,0x00000000},//  093  0x5d  
			{0x00000000,0x1c00e003,0x800003fc,0x0ff83cf0,0xe1c3870e,0x1c3870e1,0xc3870e1c,0x007001c0,0x07001c00},//  094  0x5e  
			 {0x00000c00, 0x3000c003, 0x00fe03f8, 0x01e00780, 0x1e007801, 0xe007801e, 0x007801fc, 0x07f01fc0, 0x00000000},//095 0x5f
			 {0x00000000,0x380ff83f,0xe000038e,0x0e3838e0,0xe3838e0e,0x3838e0f7,0x81fc03e0,0x00000000,0x00000000},//  096  0x60  
			{0x00000000,0x00000000,0x000000f7,0x07fc3de0,0xe3838e0e,0x3838e0f7,0x81ff03dc,0x00000000,0x00000000},//  097  0x61  
			{0x00000000,0xf807f03d,0xe0e3838e,0x0e783f80,0xff038e0e,0x1c3870f3,0xc3fe0ff0,0x3800e003,0x800e0000},//  098  0x62  
			{0x00000000,0x00000000,0x00000707,0x1c1c38e0,0xe381dc07,0x700f803e,0x00f801c0,0x07001c00,0x7001c000},//  099  0x63  
			{0x00000001,0xfe07f80e,0x001c00fc,0x07f83cf0,0xe1c3870e,0x1c387073,0xc1fe03f0,0x00000000,0x00000000},//  100  0x64  
			{0x00000000,0x00000000,0x000000f8,0x07f01c00,0x7000f003,0xc01c0073,0x01fc03e0,0x00000000,0x00000000},//  101  0x65  
			{0x00000000,0xfe03f801,0xc00e0070,0x03800e00,0x7001c007,0x001c0078,0x00fc01f8,0x00e00380,0x3c00e000},//  102  0x66  
			{0x00000000,0x00000000,0x000003fc,0x0ff83cf0,0xe1c3870e,0x1c3870e1,0xc3870e1c,0x007001c0,0x07001c00},//  103  0x67  
			{0x00000000,0xfc07f81c,0xe0e1c387,0x0e1c3ff0,0xffc3870e,0x1c387073,0x81fe03f0,0x00000000,0x00000000},//  104  0x68  
			 {0x00000000, 0x00000000, 0x00000000, 0x07e01f80, 0x7e007801, 0xe007801e, 0x007801f8, 0x07e01f80, 0x00000000},//105 0x69
			 {0x00000000,0x00000000,0x000001ce,0x07701f80,0x7c01f007,0xe01f8077,0x01ce071c,0x00000000,0x00000000},//  106  0x6a  
			{0x00000001,0xc007800e,0x003800f0,0x03c00f00,0x7e01f80f,0x7039c0e7,0x070e1c38,0x00000000,0x00000000},//  107  0x6b  
			{0x00000000,0x00000000,0x00000387,0x0e1c3870,0xe1c3870e,0x1c3870f3,0xc3ff0ffc,0x3800e003,0x800e0000},//  108  0x6c  
			{0x00000000,0x00000000,0x0000070e,0x1c3839c0,0xe7039c07,0xe01f807e,0x00f003c0,0x00000000,0x00000000},//  109  0x6d  
			{0x00000000,0x7c03f01e,0x007001c0,0x03f007c0,0x3c01e007,0x001c0078,0x00fc01f8,0x00e00380,0x3c00e000},//  110  0x6e  
			{0x00000000,0x00000000,0x000000fc,0x07f83cf0,0xe1c3870e,0x1c3870f3,0xc1fe03f0,0x00000000,0x00000000},//  111  0x6f  
			{0x00000000,0x00000000,0x00000fff,0xffff3870,0xe1c3870e,0x1c3870e1,0xc3870e1c,0x00000000,0x00000000},//  112  0x70  
			{0x00000000,0x00000000,0x000000fc,0x07f83ce0,0xe1c3870e,0x1c3870f3,0xc3fe0ff0,0x3800e003,0x800e0000},//  113  0x71  
			{0x00000000,0x00000000,0x0000003e,0x01f80e00,0x7001c007,0x001c0078,0x00fc01f8,0x00e00380,0x7e01e000},//  114  0x72  
			{0x00000000,0x00000000,0x000001ff,0x0ffc78e1,0xc3870e1c,0x3870e1e7,0x83fc07e0,0x00000000,0x00000000},//  115  0x73  
			 {0x00000000, 0x00000000, 0x000003ff, 0x0ffc3ff0, 0x0e003800, 0xe003800e, 0x003e00f8, 0x00000000, 0x00000000},//116 0x74
			 {0x00000000,0x00000000,0x0000038e,0x0e3838e0,0xe3838e0e,0x3838e0f7,0x81fc03e0,0x00000000,0x00000000},//  117  0x75  
			{0x00000000,0x7001c007,0x001c01fc,0x1ffc7773,0x9cee73b9,0xcee739dd,0xc7ff07f0,0x07001c00,0x7001c000},//  118  0x76  
			{0x00000000,0x00000000,0x00000707,0x0e3838e0,0x7700f803,0xe007001c,0x00f803e0,0x1dc0e383,0x8e1c1c00},//  119  0x77  
			{0x00000000,0x00000000,0x00000739,0xdce7739d,0xce7739dc,0xe7739dee,0xf3ff87fc,0x03800e00,0x3800e000},//  120  0x78  
			{0x00000000,0x00000000,0x000001c7,0x071c3bb8,0xeee3bb8e,0xee3bb8ee,0xe1ff07bc,0x00000000,0x00000000},//  121  0x79  
			 {0x000071c1, 0xc70fe03f, 0x80fe0078, 0x01e00780, 0x1e007801, 0xe007801e, 0x007f01fc, 0x07f00000, 0x00000000},//122 0x7a
			 {0x00000001,0xdc077000,0x0000038e,0x0e3838e0,0xe3838e0e,0x3838e0f7,0x81fc03e0,0x00000000,0x00000000},//  123  0x7b  
			{0x00000000,0x3801c007,0x000000fc,0x07f83cf0,0xe1c3870e,0x1c3870f3,0xc1fe03f0,0x00000000,0x00000000},//  124  0x7c  
			{0x00000000,0x3801c007,0x0000038e,0x0e3838e0,0xe3838e0e,0x3838e0f7,0x81fc03e0,0x00000000,0x00000000},//  125  0x7d  
			{0x00000000,0x1c00e003,0x800001c7,0x071c3bb8,0xeee3bb8e,0xee3bb8ee,0xe1ff07bc,0x00000000,0x00000000},//  126  0x7e  
                     {0x0001ffe7, 0xff9ffe7f, 0xf9ffe7ff, 0x9ffe7ff9, 0xffe7ff9f, 0xfe7ff9ff, 0xe7ff8000, 0x00000000, 0x00000000}    //  127  0x7f
		},
};

UINT32* get_char_from_greek(UINT8 charset, UINT8 character, UINT8 i)
{
   return((UINT32*)&TTX_GREEK_Font[charset][character][i]);
}

#endif
